<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

if(empty($arResult))
	return "";

$strReturn .='<div class="navibar">';
$arResult[count($arResult)-1]["LINK"]="";
foreach($arResult as $NavItem):
    if($NavItem["LINK"]):
        $strReturn .='<a href="'.$NavItem["LINK"].'">'.$NavItem["TITLE"].'</a><span></span>';
    else:
        $strReturn .=$NavItem["TITLE"];
    endif;
endforeach;

return $strReturn.'</div>';
?>

                    